package com.smart.village.big.screen.mapper;

import com.alibaba.fastjson.JSONObject;
import com.smart.village.big.screen.domain.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface StudyFilesMapper {
    List<StudyFiles> getStudyFilesByCategory(String categorySerialNumber,String search,@Param("environment") int environment);
    List<HashMap<String,Object>> getStudyFilesCategoryChildIdList(String categorySerialNumber);
    HashMap<String,Object> getStudyFilesCategoryByCategorySerialNumber(String categorySerialNumber);

    StudyFiles getStudyFilesDetail(String studyFileSerialNumber);

    void addViewCount(String studyFileSerialNumber);

    List<StudyFiles> searchHongSeShuWuLimit(int cnt,@Param("environment")int environment);

    List<PersonalBookshelf> getPersonalBookshelf(String openId);

    List<PersonalBrowsing> getPersonalBrowsing(String openId,String fileSerialNumber);

    List<PersonalBrowsingDetail> getPersonalBrowsingDetail(String openId,String browsingSerialNumber);

    List<StudyFiles> getMicroRedLookBook(String tags,String search,@Param("environment") int environment);

    List<StudyFilesTags> getStudyFilesTagsList();

    List<JSONObject> getStudyFilesDetailPictureList(String studyFileSerialNumber);
}
